/*
 * @Description:排序
 * @Version: 2.0
 * @Autor: wiz
 * @Date: 2022-12-12 11:11:58
 * @LastEditors: wiz
 * @LastEditTime: 2023-05-08 11:01:50
 */
// 排序类暂无
// eslint-disable-next-line no-shadow
export enum V_sortValue {
  ASC = 'ASC',
  DESC = 'DESC'
}
export class T_sort {
  field: string;

  value: V_sortValue;

  weight?: number;

  public setField(p: string): T_sort {
    this.field = p;
    return this;
  }

  public setValue(p: V_sortValue): T_sort {
    this.value = p;
    return this;
  }

  public setWeight(p: number): T_sort {
    this.weight = p;
    return this;
  }
}
export interface I_sort extends T_sort {}
